﻿@using Microsoft.AspNetCore.Components.Routing
@inject Known.AntBlazor.UIService AntUI

<CascadingValue Value="context">
    <Router AppAssembly="typeof(App).Assembly">
        <Found Context="routeData">
            <RouteView RouteData="@routeData" />
        </Found>
        <NotFound></NotFound>
    </Router>
</CascadingValue>

@code {
    private Context context;

    protected override void OnInitialized()
    {
        context = new Context(AntUI);
        base.OnInitialized();
    }
}